<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<h:outputStylesheet library="css" name="style.css" />

<f:view>
	<h:head>
		<title>CatLib - Buch anlegen</title>
	</h:head>
	<h:body>
		<h:graphicImage library="img" value="/img/catlib.png"></h:graphicImage>
		<br></br>
		<br></br>
		<h:form>
			<p:messages id="messages" showDetail="false" autoUpdate="true"
				closable="true" />
		</h:form>

		<h:form>
			<h:panelGrid columns="2" cellpadding="4">
				<p:outputLabel for="input-isbn" value="ISBN"></p:outputLabel>
				<p:inputText id="input-isbn" value="#{book.isbn}" required="true"
					requiredMessage="Bitte geben Sie eine ISBN ein."></p:inputText>

				<p:outputLabel for="input-autor" value="Autor"></p:outputLabel>
				<p:inputText id="input-autor" value="#{book.autor}" required="true"
					requiredMessage="Bitte geben Sie einen Autor ein."></p:inputText>


				<p:outputLabel for="input-titel" value="Titel"></p:outputLabel>
				<p:inputText id="input-titel" value="#{book.titel}" required="true"
					requiredMessage="Bitte geben Sie einen Titel ein."></p:inputText>

				<p:commandButton value="Buch anlegen" action="#{book.create}"></p:commandButton>
				<br></br>
				<p:button value="Zurück" outcome="createBookBack"></p:button>
			</h:panelGrid>
		</h:form>

	</h:body>
</f:view>




</html>